[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
Function isCGA - is Color Graphics adapter installed
isEGA - is Enhanced Graphics adapter installed
isHerc - is Hercules Graphics adapter installed
isMDA - is Monochrome adapter installed
ismono - is monochrome display
iscolor - is color display
Syntax boolean isMDA(void);
boolean isCGA(void);
boolean isEGA(void);
boolean isHerc(void);
#include <video.h>
ismono()
iscolor()
Prototype in video.h
Remarks is...() check if a video adapter is present.
ismono() checks if the display is mono.
iscolor() checks if the display is color.
The ismono() and iscolor() are macros. Use them if
you wish to check what attributes to use (underline
or red?) and use the adapter functions (isEGA,
etc.) for adapter specific tests.
Return value these functions return TRUE if the video adapter or
type, as the case may be, is present. Otherwise
they return FALSE.
See also video.h
Example #include <video.h>
main()
{
if (ismono()) /* monochrome */
if (isHerc())
printf("Hercules");
else
printf("MDA");
else /* color */
if (isEGA())
printf("EGA");
else
printf("CGA");
}
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson